<template>
  <div class="custom-thread">
    <div class="news-phone" @click="consultHandler">
      <i class="iconfont icon-kehu_xiaoxi"></i>
      <p>发消息</p>
    </div>
    <div class="news-phone" @click="phoneHandler" v-if="clientMobile">
      <i class="iconfont icon-kehu_dadianhua"></i>
      <p>打电话</p>
    </div>
    <div class="button-custom" @click="setCustomer">置为意向客户</div>
  </div>
</template>
<script>
import CustomService from 'SERVICE/customService'
export default {
  props: {
    clientMobile: {
      type: String,
      default: ''
    }
  },
  data: () => ({
      
  }),
  methods: {

    /**
     * 置为客户
     */
    setCustomer () {
      this.$emit('oncustomer')
    },

    /**
     * 打电话
     */
    phoneHandler () {
      this.$emit('onphone')
    },

    /**
     * 发消息
     */
    consultHandler () {
      this.$emit('onconsult')
    }
  }
}
</script>
<style lang="less" sc>
.custom-thread {
  display: flex;
  padding: 8px 16px 8px 0px;
  align-items: center;
  .news-phone {
    color: #405170;
    font-size: 12px;
    text-align: center;
    margin-left: 38px;
    i {
      font-size: 24px;
    }
    p {
      margin-top: 4px;
    }
  }
  .button-custom {
    flex: 1;
    margin-left: 1.01333rem;
    height: 44px;
    line-height: 44px;
    background: #007AE6;
    color: #fff;
    font-size: 14px;
    text-align: center;
    border-radius: 6px;
  }
}
</style>
